package com.syedu.day15.homework;

/**
 * description：
 * @author Administrator
 * @date 2022/4/2 14:07
 */
public class TestLetterAndNumberThread {
    public static void main(String[] args) {
        Object obj = new Object();
        Runnable r1 = new NumberThread(obj);
        Runnable r2 = new LetterThread(obj);
        Thread t1 = new Thread(r1);
        Thread t2 = new Thread(r2);
        t1.start();
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        t2.start();
    }
}